/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * <p>Project: app2022 - ForIn1
 * <p>Powered by webrx On 2022-01-08 10:26:15
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ForIn1 {
    public static void main(String[] args) {
        //java环境信息
        //System.getProperties().forEach((k, v) -> System.out.printf("[%s] = %s%n", k, v));
        //String dir = System.getProperty("user.dir");
        //System.out.println(dir);

        //for in语句  遍历数组
        for (String str : "java,javascript,html,css,jquery,vue,mysqljava".split(",")) {
            if (!str.contains("java")) continue;
            System.out.println(str);
        }

        for (int i : Stream.of(1, 2, 3, 4, 5, 6).collect(Collectors.toList())) {
            System.out.println(i);
        }


    }
}
